﻿<div class="ui-mokit-diary">
	<div class="ymbar">
		<p class="arrow-left"></p>
		<div class="ym">
		    <select class="mlist" data-event="change>showYm">
		        <% for(var i=1; i<=12; i++){ %>
		        <option value="<%=i%>" <% if(i==this.month){%> selected="selected"<%}%>><%=i%>月</option>
		        <% } %>
		    </select>	
		    <select class="ylist" data-event="click>showYm">
		        <% for (var i=this.thisYear-50; i<this.thisYear+50; i++){ %>
		        <option value="<%=i%>"<% if (i==this.year){%> selected="selected"<%}%>><%=i%></option>
		        <% } %>
		    </select>
	    </div>
	    <p class="arrow-right"></p>
	</div>
    <ul class="xq"><li
        >周日</li><li
        >周一</li><li
        >周二</li><li
        >周三</li><li
        >周四</li><li
        >周五</li><li
        >周六</li></ul
    >
    <%
    	var dayHTML = [];
		for(var i=1; i<=this.day; i++){
			dayHTML.push('<li>&nbsp;</li>');
		}
        for(var i=1; i<=this.days; i++){
        	dayHTML.push('<li');
        	if(this.date==i){
        		dayHTML.push(' class="selectedday"');
        	}else if(this.thisYear==this.year&&this.thisMonth==this.month&&this.thisDate==i){
        		dayHTML.push(' class="today"');
        	}
        	dayHTML.push('>'+i+'</li>');
        } 
		dayHTML = dayHTML.join("");
    %>
    <ul class="day"><%=dayHTML%></ul>
</div>